package com.st.dao;

import com.st.entity.Goods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IGoodsDao {
    public List<Goods> query(Goods goods);

    public Integer add(Goods goods);

    //下架商品
    public Integer updateStatus(Map<String, String> map);

    public Integer update(Goods goods);

    public Integer del(@Param("id") Integer id);
    public List<Goods> queryNew();
    //跟新库存
    public Integer updateCount(Map<String,Integer> map);
}
